package com.zjzywl.iotSendthings.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Component
@ConfigurationProperties(prefix = "app")
public class AppConfig {
    private String serverIp;
    private String faceIdentifyUrl;

	public String getFaceIdentifyUrl() {
		return faceIdentifyUrl;
	}

	public void setFaceIdentifyUrl(String faceIdentifyUrl) {
		this.faceIdentifyUrl = faceIdentifyUrl;
	}

	public String getServerIp() {
		return serverIp;
	}
	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	@Bean
	public RestTemplate restTemplate() {
		return new RestTemplate();
	}
}
